﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace tms.Migrations
{
    public partial class menu : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "IsLeftShow",
                table: "TmsMenu");

            migrationBuilder.AddColumn<string>(
                name: "MenuCode",
                table: "TmsMenu",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "MenuType",
                table: "TmsMenu",
                type: "nvarchar(max)",
                nullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "MenuCode",
                table: "TmsMenu");

            migrationBuilder.DropColumn(
                name: "MenuType",
                table: "TmsMenu");

            migrationBuilder.AddColumn<bool>(
                name: "IsLeftShow",
                table: "TmsMenu",
                type: "bit",
                nullable: false,
                defaultValue: false);
        }
    }
}
